<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title></title>
        <link type="text/css" rel="stylesheet" media="all" href="${pageContext.request.contextPath}/css/global.css" />
        <link type="text/css" rel="stylesheet" media="all" href="${pageContext.request.contextPath}/css/global_color.css" />
        <link type="test/css" rel="stylesheet" media="all" href="${pageContext.request.contextPath}/css/login.css"/>
        <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.12.4.js"></script>
        <script type="text/javascript">
        	$(function(){
        		$("span").hide();
        		$("#psw").keypress(function(event){
        			if(event.keyCode==13){
        				$("#myform").submit();
        			}
        		})
        	})
        </script>
    </head>
    <body class="index">
        <div class="login_box">
            <form id="myform" action="${pageContext.request.contextPath}/login/LoginServlet" method="post">
            <table>
                <tr>
                    <td class="login_info">账号：</td>
                    <td colspan="2"><input name="user" type="text" class="width150" /></td>
                    <td class="login_error_info"><span class="required">30长度的字母、数字和下划线</span></td>
                </tr>
                <tr>
                    <td class="login_info">密码：</td>
                    <td colspan="2"><input name="psw" type="password" id="psw" class="width150" /></td>
                    <td><span id="span1" class="required">30长度的字母、数字和下划线</span></td>
                </tr>
                <tr>
                    <td class="login_info">验证码：</td>
                    <td class="width70"><input name="yanzheng" type="text" class="width70" /></td>
                    <td><img src="${pageContext.request.contextPath}/images/valicode.jpg" alt="验证码" title="点击更换" /></td>  
                    <td><span class="required">验证码错误</span></td>              
                </tr>            
                <tr>
                    <td></td>
                    <td class="login_button" colspan="2">
                        <a href="javascript:document.forms[0].submit();"><img src="${pageContext.request.contextPath}/images/login_btn.png" /></a>
                    </td> 
                    <div class="login">   
                    <td><span class="required">用户名或密码错误，请重试</span></td>  
                    </div>            
                </tr>
                </table>
            </form>
        </div>
    </body>
</html>